#!/usr/bin/env python3
# -*- coding: utf-8 -*-
#
import time
from threading import Thread

def test():
    print("123")
    time.sleep(2)
    print("end123")

def task():
    print("456")
    time.sleep(1)
    print("end456")

if __name__ == '__main__':
    t1 = Thread(target=test)
    tk1 = Thread(target=task)

    t1.daemon = Thread
    t1.start()
    tk1.start()

    print("__main__")
